#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/gsafety_devops_20240320.sql ./mysql/db
cp ../sql/gsafety_devops_config_20240320.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../devops-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy devops-gateway "
cp ../devops-gateway/target/devops-gateway.jar ./devops/gateway/jar

echo "begin copy devops-auth "
cp ../devops-auth/target/devops-auth.jar ./devops/auth/jar

#echo "begin copy devops-visual "
#cp ../devops-visual/devops-visual-monitor/target/devops-visual-monitor.jar  ./devops/visual/monitor/jar

echo "begin copy devops-modules-system "
cp ../devops-modules/devops-system/target/devops-modules-system.jar ./devops/modules/system/jar

#echo "begin copy devops-modules-file "
#cp ../devops-modules/devops-file/target/devops-modules-file.jar ./devops/modules/file/jar

#echo "begin copy devops-modules-job "
#cp ../devops-modules/devops-job/target/devops-modules-job.jar ./devops/modules/job/jar

#echo "begin copy devops-modules-gen "
#cp ../devops-modules/devops-gen/target/devops-modules-gen.jar ./devops/modules/gen/jar

